package com.geek.game.manager.agent;

import java.util.Date;

import com.geek.game.manager.agent.model.ConsumerRecord;
import com.geek.game.manager.agent.service.ConsumerService;
import com.geek.game.manager.agent.service.impl.ConsumerServiceImpl;

import ydh.cicada.query.factory.MysqlQueryFactory;
import ydh.cicada.query.factory.QueryFactory;

/**
 * Hello world!
 *
 */
public class App 
{
    public static void main( String[] args )
    {
    	QueryFactory factory=new MysqlQueryFactory();
    	
        ConsumerRecord record=new ConsumerRecord();
        ConsumerService service=new ConsumerServiceImpl();
        record.setConsumerId("1111");
        record.setConsumeTime(new Date());
        record.setCostId("2075");
        record.setOrderMoney("4");
        record.setRoomId("6666");
        service.insertRecord(record);
        System.err.println("新增完成");
    }
}
